gtkdnd: Remove gtk_drag_begin
authorTimm Bäder <mail@baedert.org>
Tue, 11 Oct 2016 12:41:30 +0000 (14:41 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Oct 2016 22:29:17 +0000 (00:29 +0200)
gtk/gtkdnd-quartz.c
gtk/gtkdnd.c
gtk/gtkdnd.h

index b6cd24358550e474a974f783867737216e3bf951..7b7d3196f88c0f874c6a2b28ff7186862b8a7eb2 100644 (file)
@@ -1264,31 +1264,6 @@ gtk_drag_begin_with_coordinates (GtkWidget         *widget,
   return gtk_drag_begin_internal (widget, NULL, targets,
                                  actions, button, event, x, y);
 }
-/**
- * gtk_drag_begin: (method)
- * @widget: the source widget.
- * @targets: The targets (data formats) in which the
- *    source can provide the data.
- * @actions: A bitmask of the allowed drag actions for this drag.
- * @button: The button the user clicked to start the drag.
- * @event: The event that triggered the start of the drag.
- *
- * Returns: (transfer none):
- */
-GdkDragContext *
-gtk_drag_begin (GtkWidget         *widget,
-               GtkTargetList     *targets,
-               GdkDragAction      actions,
-               gint               button,
-               GdkEvent          *event)
-{
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-  g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
-  g_return_val_if_fail (targets != NULL, NULL);
-
-  return gtk_drag_begin_internal (widget, NULL, targets,
-                                 actions, button, event, -1, -1);
-}
 
 
 /**
index 92c57c39a98f60fa5aa3fd88880ff920e462a296..a8c369a1783fa2a62a98c79aed645cd9ac67267c 100644 (file)
@@ -1764,38 +1764,6 @@ gtk_drag_begin_with_coordinates (GtkWidget     *widget,
                                   actions, button, event, x, y);
 }
 
-/**
- * gtk_drag_begin: (method)
- * @widget: the source widget
- * @targets: The targets (data formats) in which the
- *    source can provide the data
- * @actions: A bitmask of the allowed drag actions for this drag
- * @button: The button the user clicked to start the drag
- * @event: (nullable): The event that triggered the start of the drag,
- *    or %NULL if none can be obtained.
- *
- * This function is equivalent to gtk_drag_begin_with_coordinates(),
- * passing -1, -1 as coordinates.
- *
- * Returns: (transfer none): the context for this drag
- *
- * Deprecated: 3.10: Use gtk_drag_begin_with_coordinates() instead
- */
-GdkDragContext *
-gtk_drag_begin (GtkWidget     *widget,
-                GtkTargetList *targets,
-                GdkDragAction  actions,
-                gint           button,
-                GdkEvent      *event)
-{
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-  g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
-  g_return_val_if_fail (targets != NULL, NULL);
-
-  return gtk_drag_begin_internal (widget, NULL, targets,
-                                  actions, button, event, -1, -1);
-}
-
 static void
 icon_widget_destroyed (GtkWidget         *widget,
                        GtkDragSourceInfo *info)
index d975f06e5df04cfee0e1b49aa5bb7a6ada1bd3ea..afd3edade81d80eb6a61740200a42ccbefebbb0a 100644 (file)
@@ -69,13 +69,6 @@ GdkDragContext *gtk_drag_begin_with_coordinates (GtkWidget         *widget,
                                                  gint               x,
                                                  gint               y);
 
-GDK_DEPRECATED_IN_3_10_FOR(gtk_drag_begin_with_coordinates)
-GdkDragContext *gtk_drag_begin (GtkWidget         *widget,
-                               GtkTargetList     *targets,
-                               GdkDragAction      actions,
-                               gint               button,
-                               GdkEvent          *event);
-
 GDK_AVAILABLE_IN_3_16
 void gtk_drag_cancel           (GdkDragContext *context);